package com.xxx.video.network.exceptions;

public class NetWorkException extends Exception {
    /**
     * errorcode
     */
    private int errorCode;
    /**
     * errorMsg
     */
    private Object errorMsg;

    /**
     * @param errorCode errorCode
     * @param errorMsg  errorMsg
     */
    public NetWorkException(int errorCode, Object errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    /**
     * get errorCode
     *
     * @return errorCode
     */
    public int getErrorCode() {
        return errorCode;
    }

    /**
     * get  errorMsg
     *
     * @return errorMsg
     */
    public Object getErrorMsg() {
        return errorMsg;
    }
}
